Spread WPF Documentation
SavePdf(String,PdfExportSettings,Int32[]) Method
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class > SavePdf Method : SavePdf(String,PdfExportSettings,Int32[]) Method
The file name.
The export settings.
The sheet indexes.
Saves the content of the component to the specified PDF file.
Syntax
'Declaration
 
Public Overloads Sub SavePdf( _
   ByVal fileName As System.String, _
   ByVal settings As PdfExportSettings, _
   ByVal ParamArray sheetIndexes() As System.Integer _
) 
'Usage
 
Dim instance As GcSpreadSheet
Dim fileName As System.String
Dim settings As PdfExportSettings
Dim sheetIndexes() As System.Integer
 
instance.SavePdf(fileName, settings, sheetIndexes)
public void SavePdf( 
   System.string fileName,
   PdfExportSettings settings,
   params System.int[] sheetIndexes
)

Parameters

fileName
The file name.
settings
The export settings.
sheetIndexes
The sheet indexes.
Example
This example uses the SavePdf method.
GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings test;
test = new GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings();
test.Title = "Print PDF";
test.Author = "GrapeCity, Inc.";
test.DisplayDocTitle = true;
test.FitWindow = true;
gcSpreadSheet1.SavePDF("c:\\zipfile\\test.pdf", test, 0);
//gcSpreadSheet1.SavePDF("c:\\zipfile\\test.pdf", 0);
Dim test as New GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings
test = new GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings()
test.Title = "Print PDF"
test.Author = "GrapeCity, Inc."
test.DisplayDocTitle = True
test.FitWindow = True
GcSpreadSheet1.SavePDF("c:\zipfile\test.pdf", test, 0)
'GcSpreadSheet1.SavePDF("c:\zipfile\test.pdf", 0)
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members
Overload List